package com.struct.graph.login
{
	import com.component.button.Button;
	import com.utils.Utils;
	
	import flash.text.TextField;
	
	import sacu.window.NPanel;
	
	public class LoginPanel extends NPanel
	{
		public var txtUserName:TextField;
		public var txtPassWord:TextField;
		public var login:Button;
		public function LoginPanel(width:int, height:int)
		{
			super(width, height);
		}
		override protected function createChildren():void{
			super.createChildren();
			
			Utils.createTextField(container, 20, 20, "帐号:");
			Utils.createTextField(container, 20, 50, "密码:");
			txtUserName = Utils.creatBorderTextField(container, 100, 20, 120);
			txtPassWord = Utils.creatBorderTextField(container, 100, 50, 120);
			login = new Button("登陆");
			login.x = 62;
			login.y = 100;
			container.addChild(login);
		}
	}
}